package com.rear.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.rear.dao.TestContentDao;
import com.rear.entity.TestContentEntity;
import com.rear.service.TestContentService;



@Service("testContentService")
public class TestContentServiceImpl implements TestContentService {
	@Autowired
	private TestContentDao testContentDao;
	
	@Override
	public TestContentEntity queryObject(Integer id){
		return testContentDao.queryObject(id);
	}
	
	@Override
	public List<TestContentEntity> queryList(Map<String, Object> map){
		return testContentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return testContentDao.queryTotal(map);
	}
	
	@Override
	public void save(TestContentEntity testContent){
		testContentDao.save(testContent);
	}
	
	@Override
	public void update(TestContentEntity testContent){
		testContentDao.update(testContent);
	}
	
	@Override
	public void delete(Integer id){
		testContentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		testContentDao.deleteBatch(ids);
	}
	
}
